package com.ecloud.support.generator.model.convert;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.ecloud.support.generator.model.dto.DbConfigDto;
import com.ecloud.support.generator.model.entity.DbConfigPo;
import com.ecloud.support.generator.model.vo.DbConfigVo;

@Mapper
public interface DbConfigConverter {
    DbConfigConverter INSTANCE = Mappers.getMapper(DbConfigConverter.class);

    DbConfigPo dtoToPo(DbConfigDto dto);

    List<DbConfigPo> dtoToPo(List<DbConfigDto> dtos);

    DbConfigVo poToVo(DbConfigPo po);

    List<DbConfigVo> poToVo(List<DbConfigPo> pos);
}
